<template>
	<!-- 标题部分 -->
	<view class="block-title">
		<view class="title-box">
			<view class="title-box-l">
				<text>{{title}}</text>
			</view>
			<view class="title-box-r" @click='jumproductFn'>
				<text>更多</text>
				<uni-icons type="forward" size="15"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"more",
		data() {
			return {
				
			};
		},
		props:{
			title:{
				type:String,
				required:true,
			},
			url:{
				type:String,
				required:true
			}
		},
		methods:{
			jumproductFn(){
			
				// 点击更多 跳转到产品页
				uni.navigateTo({
					url:this.url
				})
			}
		}
	}
</script>

<style lang="less">
	
	.block-title {
		padding: 26rpx 30rpx;
		background: #fff;
		margin-top: 30rpx;
	}
	
	.block-title .title-box {
		display: flex;
		align-items: center;
		justify-content: space-between
	}
	
	.block-title .title-box .title-box-l {
		position: relative;
		padding-left: 24rpx;
	}
	
	.block-title .title-box .title-box-l text {
		font-size: 34rpx;
		color: #333;
	}
	
	.block-title .title-box .title-box-r {
		display: flex;
		align-items: center;
	}
	
	.block-title .title-box .title-box-r text {
		font-size: 28rpx;
		color: #999;
	}
	
	.iconfont {
		font-family: "iconfont" !important;
		font-size: 32rpx;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
	
	.block-title .title-box .title-box-r text {
		font-size: 28rpx;
		color: #999;
	}


</style>